package com.tpc.control.jpa;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Uom entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "uom", catalog = "production_control")
public class Uom implements java.io.Serializable {

	// Fields

	private String uomId;
	private String uomName;

	// Constructors

	/** default constructor */
	public Uom() {
	}

	/** full constructor */
	public Uom(String uomId, String uomName) {
		this.uomId = uomId;
		this.uomName = uomName;
	}

	// Property accessors
	@Id
	@Column(name = "uom_id", unique = true, nullable = false, length = 6)
	public String getUomId() {
		return this.uomId;
	}

	public void setUomId(String uomId) {
		this.uomId = uomId;
	}

	@Column(name = "uom_name", nullable = false, length = 20)
	public String getUomName() {
		return this.uomName;
	}

	public void setUomName(String uomName) {
		this.uomName = uomName;
	}

}